import React, {Component} from 'react';
import {Icon, NavBar} from "antd-mobile";

const info9 = require('../../assets/img/info/9info@2x.png')
const info10 = require('../../assets/img/info/10info@2x.png')

class desc extends React.Component {

    render() {
        const {match: params} = this.props
        console.log(3333, params.params.id);
        let img = ''
        if (Number(params.params.id) === 9) {
            img = <img src={info9} width={'100%'} alt=""/>
        } else if (Number(params.params.id) === 10) {
            img = <img src={info10} width={'100%'} alt=""/>
        }
        const goBack = () => {
            this.props.history.goBack()
        }
        return <div>
            <NavBar mode="light"
                    onLeftClick={() => goBack()}
                    icon={<Icon type="left"/>}
                    className='title'>运营报告</NavBar>
            {img}
        </div>


    }
}

export default desc
